<?php
/**
 * Controller is the customized base controller class.
 * All controller classes for this application should extend from this base class.
 */
class Controller extends CController
{
    
    public $menu=array();
    
    public $breadcrumbs=array();
    
    public function __construct($id, $module = null) {
        parent::__construct($id, $module);
        
        Yii::app() -> language = 'vi';
        
        //Yii::app()->clientScript->registerCoreScript('jquery');
    }
    
    public function registerExtjs()
    {
        $cs = Yii::app()->clientScript;
        $cs -> registerCssFile("/js/extjs/resources/css/ext-all-gray.css");
        $cs -> registerScriptFile("/js/extjs/ext-all.js");
    }
    
    public function registerJqWidgets()
    {
        $cs = Yii::app()->clientScript;
        $cs -> registerScriptFile("/js/jqwidgets/jqx-all.js");
    }
}